﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"
    CodeFile="QLHinhAnh.aspx.cs" Inherits="Admin_Hinh_Anh_QLHinhAnh" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HomePlaceHolder" runat="Server">
    <script type="text/javascript">
        var GB_ROOT_DIR = "../../GREY_BOX/";
        function TaoMoi_HinhAnh() {
            var url = "../Admin/HinhAnh/UploadImage.aspx";
            return GB_showCenter('Cập nhật Hình ảnh', url, 320, 570);
        }           
    </script>
    <script src="../../GREY_BOX/AJS.js" type="text/javascript"></script>
    <script src="../../GREY_BOX/AJS_fx.js" type="text/javascript"></script>
    <script src="../../GREY_BOX/gb_scripts.js" type="text/javascript"></script>
    <link href="../../GREY_BOX/gb_styles1.css" rel="stylesheet" type="text/css" />
    <div class="hrm_header_placeholder">
        Quản lý Hình ảnh</div>
    <div style="padding: 10px">
        <asp:HiddenField ID="H_CatalogId" Value="0" runat="server" />
        <asp:Panel ID="PanelAdd" Width="100%" GroupingText="Cập nhật thông tin" runat="server">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td colspan="8" height="10">
                    </td>
                </tr>
                <tr>
                    <td width="20">
                    </td>
                    <td width="110" class="hrm_title_blue">
                        Tên hình ảnh
                    </td>
                    <td width="7" class="hrm_title_blue">
                        :
                    </td>
                    <td width="220">
                        <asp:TextBox ID="txtTen" CssClass="hrm_textbox" Width="200px" MaxLength="50" runat="server"></asp:TextBox>
                    </td>
                    <td width="20">
                    </td>
   <%--                 <td width="110" class="hrm_title_blue">
                        Bộ sưu tập
                    </td>
                    <td width="7" class="hrm_title_blue">
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="cboBoSuuTap" CssClass="hrm_combobox" Width="205px" runat="server">
                        </asp:DropDownList>
                    </td>--%>
                </tr>
                <tr>
                    <td colspan="4" height="4">
                    </td>
                </tr>
                <tr>
                    <td width="20">
                    </td>
                    <td width="110" class="hrm_title_blue">
                    </td>
                    <td width="7" class="hrm_title_blue">
                    </td>
                    <td>
                        <asp:ImageButton ID="cmdTimKiem" ImageUrl="~/Images/tim.jpg" runat="server" OnClick="cmdTimKiem_Click" />
                        <asp:ImageButton ID="cmdTimLai" CausesValidation="false" ImageUrl="~/Images/timlai.jpg"
                            runat="server" OnClick="cmdTimLai_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4" height="8">
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="PanelList" Width="100%" Height="355" GroupingText="Danh sách" runat="server">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="20">
                    </td>
                    <td style="padding-right: 15px">
                        <asp:DataList ID="dlHinhAnh" runat="server" BackColor="Transparent" BorderColor="Transparent"
                            RepeatColumns="5" RepeatDirection="Horizontal" Width="100%" OnDeleteCommand="dlHinhAnh_DeleteCommand">
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td align="center">
                                            <a href="../../Upload/BoSuuTap/<%# Eval("IdBoSuuTap") %>/Full/<%# Eval("DienGiai") %>"
                                                rel="gb_imageset[nice_pics]" title='<%# Eval("DienGiai") %>'>
                                                <asp:Image ID="img" Width="80" runat="server" CssClass="imgviewer" ImageUrl='<%# GetHinhAnh(Eval("IdBoSuuTap"),Eval("DienGiai"))%>'
                                                    BorderWidth="0px" />
                                            </a>
                                            <br />
                                            <asp:LinkButton ID="cmdDelete" runat="server" CausesValidation="false" CssClass="command_button"
                                                Text="Delete" CommandName="Delete" CommandArgument='<%# Eval("id") %>'>Xóa</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="4">
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                            <ItemStyle Wrap="True" BackColor="Transparent" BorderColor="Transparent" />
                            <EditItemStyle BackColor="Transparent" BorderColor="Transparent" />
                            <SelectedItemStyle BackColor="Transparent" BorderColor="Transparent" />
                            <AlternatingItemStyle BackColor="Transparent" BorderColor="Transparent" />
                            <HeaderStyle BackColor="Transparent" BorderColor="Transparent" />
                        </asp:DataList>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <asp:Panel ID="Panel2" CssClass="div_footer" BackColor="#d6e6f5" runat="server" Height="24px">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <asp:ImageButton ID="cmdTaoMoi" CausesValidation="false" ImageUrl="~/Images/taomoi.jpg"
                        OnClientClick="return TaoMoi_HinhAnh();" runat="server" />
                </td>
                <td align="right">
                    <cc1:Pager ID="Pager1" runat="server" PreviousClause="" NextClause="" LastClause=""
                        FirstClause="" PageClause="Trang" OfClause="/" PageSize="15" OnCommand="Pager1_Command">
                    </cc1:Pager>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
